﻿<Window x:Class="Blackbird.Dev.Utility.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Development Utility" FontFamily="Consolas">
    <Window.Resources>
        <Style x:Key="ComboBoxStyle" TargetType="ComboBox">
            <Setter Property="Margin" Value="2" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Stretch" />
        </Style>
        <Style x:Key="TextBoxStyle" TargetType="TextBox">
            <Setter Property="Margin" Value="2" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Stretch" />
        </Style>
        <Style x:Key="TextBlockStyle" TargetType="TextBlock">
            <Setter Property="HorizontalAlignment" Value="Right" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Right" />
        </Style>
        <Style x:Key="HeaderTextBlockStyle" TargetType="TextBlock">
            <Setter Property="HorizontalAlignment" Value="Center" />
        </Style>
    </Window.Resources>
    <Grid>
        <TabControl Loaded="TabControlLoaded">
            <TabItem Name="SampleImageGenTabItem" Header="Sample Image Generator">
                <Grid Name="SampleImageGenMainGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Name="HeaderRow" Height="30px" />
                        <RowDefinition Name="ContentRow" />
                        <RowDefinition Name="FooterRow" Height="30px" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Name="LeftColumn" />
                        <ColumnDefinition Name="ContentColumn" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Name="CaptionLabel" Text="Sample Image Generator" Grid.Row="0" />
                    <Border Background="White" BorderBrush="Black" BorderThickness="1,1,1,1" Grid.Row="1" Grid.Column="1" Width="264px" Height="264">
                        <Canvas Name="DisplayCanvas" Width="256px" Height="256" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Border>
                    <Grid Name="OptionsGrid" Grid.Row="1" Grid.Column="0" MinHeight="200px" MinWidth="200px">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Name="CaptionColumn" Width="120px" />
                            <ColumnDefinition Name="Inputcolumn" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Name="ControlHeaderRow" Height="Auto" />
                            <RowDefinition Name="FontFamilyRow" Height="Auto" />
                            <RowDefinition Name="FontWeightRow" Height="Auto" />
                            <RowDefinition Name="FontStyleRow" Height="Auto" />
                            <RowDefinition Name="FontStretchRow" Height="Auto" />
                            <RowDefinition Name="FontSizeRow" Height="Auto" />
                            <RowDefinition Name="TextColorColr" Height="Auto" />
                            <RowDefinition Name="BackgroundColorRow" Height="Auto" />
                            <RowDefinition Name="ImageTextRow" Height="Auto" />
                            <RowDefinition Name="FrameCountRow" Height="Auto" />
                            <RowDefinition Name="GenerateButtonRow" Height="Auto" />
                        </Grid.RowDefinitions>
                        <TextBlock Grid.Column="0" Grid.Row="0" Text="Option" Style="{StaticResource HeaderTextBlockStyle}"/>
                        <TextBlock Grid.Column="1" Grid.Row="0" Text="Value" Style="{StaticResource HeaderTextBlockStyle}"/>
                        <TextBlock Grid.Column="0" Grid.Row="1" Text="Font Family:" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="0" Grid.Row="2" Text="Font Weight:" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="0" Grid.Row="3" Text="Font Syle:" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="0" Grid.Row="4" Text="Font Stretch:" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="0" Grid.Row="5" Text="Font Size:" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="0" Grid.Row="6" Text="Text Color:" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="0" Grid.Row="7" Text="Background Color:" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="0" Grid.Row="8" Text="No. of Frames:" Style="{StaticResource TextBlockStyle}" />
                        <TextBlock Grid.Column="0" Grid.Row="9" Text="Image Text:" Style="{StaticResource TextBlockStyle}" />
                        <ComboBox Name="FontFamilyComboBox" Grid.Row="1" Grid.Column="1" ItemsSource="{x:Static Fonts.SystemFontFamilies}" Style="{StaticResource ComboBoxStyle}" SelectionChanged="ComboBoxSelectionChanged" />
                        <ComboBox Name="FontWeightComboBox" Grid.Row="2" Grid.Column="1" SelectionChanged="ComboBoxSelectionChanged" Style="{StaticResource ComboBoxStyle}" >
                            <x:Static Member="FontWeights.Black" />
                            <x:Static Member="FontWeights.Bold" />
                            <x:Static Member="FontWeights.DemiBold" />
                            <x:Static Member="FontWeights.ExtraBlack" />
                            <x:Static Member="FontWeights.ExtraBold" />
                            <x:Static Member="FontWeights.ExtraLight" />
                            <x:Static Member="FontWeights.Heavy" />
                            <x:Static Member="FontWeights.Light" />
                            <x:Static Member="FontWeights.Medium" />
                            <x:Static Member="FontWeights.Normal" />
                            <x:Static Member="FontWeights.Regular" />
                            <x:Static Member="FontWeights.SemiBold" />
                            <x:Static Member="FontWeights.Thin" />
                            <x:Static Member="FontWeights.UltraBlack" />
                            <x:Static Member="FontWeights.UltraBold" />
                            <x:Static Member="FontWeights.UltraLight" />
                        </ComboBox>
                        <ComboBox Name="FontStyleComboBox" Grid.Row="3" Grid.Column="1" Style="{StaticResource ComboBoxStyle}" SelectionChanged="ComboBoxSelectionChanged">
                            <x:Static Member="FontStyles.Normal" />
                            <x:Static Member="FontStyles.Italic" />
                            <x:Static Member="FontStyles.Oblique" />
                        </ComboBox>
                        <ComboBox Name="FontStretchComboBox" Grid.Row="4" Grid.Column="1" Style="{StaticResource ComboBoxStyle}" SelectionChanged="ComboBoxSelectionChanged">
                            <x:Static Member="FontStretches.Condensed" />
                            <x:Static Member="FontStretches.Expanded" />
                            <x:Static Member="FontStretches.ExtraCondensed" />
                            <x:Static Member="FontStretches.ExtraExpanded" />
                            <x:Static Member="FontStretches.Medium" />
                            <x:Static Member="FontStretches.Normal" />
                            <x:Static Member="FontStretches.SemiCondensed" />
                            <x:Static Member="FontStretches.SemiExpanded" />
                            <x:Static Member="FontStretches.UltraCondensed" />
                            <x:Static Member="FontStretches.UltraExpanded" />
                        </ComboBox>
                        <TextBox Name="FontSizeTextBox" Text="96" Grid.Row="5" Grid.Column="1" Style="{StaticResource TextBoxStyle}" LostFocus="TextBoxLostFocus" />
                        <ComboBox Name="TextColorComboBox" Grid.Row="6" Grid.Column="1" Style="{StaticResource ComboBoxStyle}" SelectionChanged="ComboBoxSelectionChanged" />
                        <ComboBox Name="BackgroundColorComboBox" Grid.Row="7" Grid.Column="1" SelectionChanged="ComboBoxSelectionChanged" />
                        <TextBox Name="NumberOfFramesTextBox" Text="30" Grid.Row="8" Grid.Column="1" Style="{StaticResource TextBoxStyle}" />
                        <TextBox Name="ImageTextTextBox" Grid.Row="9" Grid.Column="1" Style="{StaticResource TextBoxStyle}" LostFocus="TextBoxLostFocus" />
                        <Button Name="GenerateButton" Grid.Row="10" Grid.Column="0" Grid.ColumnSpan="2" Content="Generate" Click="GenerateButtonClick" />
                    </Grid>
                    <TextBlock Name="FilenameTagTextBlock" Text="File:" Grid.Column="1" Grid.Row="2" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Left"/>
                    <TextBox Name="FilenameTextBox" Text="c:\" Grid.Column="1" Grid.Row="2" Margin="32, 2, 32,2" />
                    <Button Name="BrowseButton" Content="..." Grid.Column="1" Grid.Row="2" Click="BrowseButtonClick" HorizontalAlignment="Right" />
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Window>